import request from '@/common/request.js'
import { formatGetUri } from '@/common/util.js'
const api = {
	
	// get /pub/api/getDangerList
	getDangerList:(params) => request.globalRequest(`/pub/api/getDangerList`, 'GET', {}, 1),
	
	// /pub/api/getNewsList
	getNewsList: (params) => request.globalRequest(`/pub/api/getNewsList`, 'GET',{}, 1),
	
	// 获取首页轮播图片
	getGalleryList: (params) => request.globalRequest(`/pub/api/getGalleryList`, 'GET',{}, 1),
	
	//获取收处企业点位集合
	getPointList: (params) => request.globalRequest(`/pub/api/getPointList`, 'GET',{}, 1), 
	
	//获取企业可收处危废列表，参数company_id=点位列表中的company_id
	getCompanyDangerList: (params) => request.globalRequest(`/pub/api/getCompanyDangerList`, 'GET',{}, 1),
	
	//添加微信用户
	saveWxUser: (params) => request.globalRequest(`/pub/api/saveWxUser${formatGetUri(params)}`, 'POST',{}, 1),
	
	//用户上传危废名录
	saveDangerUpload: (params) => request.globalRequest(`/pub/api/saveDangerUpload${formatGetUri(params)}`, 'POST',{}, 1),
	
	//获取资讯详情
	getNewsDetail: (params) => request.globalRequest(`/pub/api/getNewsDetail${formatGetUri(params)}`, 'GET',{}, 1),
	
	//用户下单
	saveOrder: (params) => request.globalRequest(`/pub/api/saveOrder${formatGetUri(params)}`, 'GET',{}, 1),
	
	//取消订单
	cancelOrder: (params) => request.globalRequest(`/pub/api/cancelOrder${formatGetUri(params)}`, 'GET',{}, 1),
	
	//取消订单
	getOrderList: (params) => request.globalRequest(`/pub/api/getOrderList${formatGetUri(params)}`, 'GET',{}, 1),
}



export default api